
package system.base;

import framework.core.*;

/*
	Author    :Jackey
	CreateTime:2008-02-15 13:29:25
*/
public class MenuInfoSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private int m_menu_code = Value.NULL_INT ; // all

	private String m_menu_name = "" ; // all

	private String m_url = "" ; // all

	private int m_display_order = Value.NULL_INT ; // all

	private String m_show_type = "" ; // all

	private int m_parent_code = Value.NULL_INT ; // all
		

public MenuInfoSearchEvent() 
{
	super();
	
	setOrderField(MenuInfo.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public int getMenuCode()
	{
		return m_menu_code ;
	}
	public void setMenuCode(int v)
	{
		m_menu_code = v;
	}

	public String getMenuName()
	{
		return m_menu_name ;
	}
	public void setMenuName(String v)
	{
		m_menu_name = v;
	}

	public String getUrl()
	{
		return m_url ;
	}
	public void setUrl(String v)
	{
		m_url = v;
	}

	public int getDisplayOrder()
	{
		return m_display_order ;
	}
	public void setDisplayOrder(int v)
	{
		m_display_order = v;
	}

	public String getShowType()
	{
		return m_show_type ;
	}
	public void setShowType(String v)
	{
		m_show_type = v;
	}

	public int getParentCode()
	{
		return m_parent_code ;
	}
	public void setParentCode(int v)
	{
		m_parent_code = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewMenuCode() throws Exception
	{
		return Value.view(getMenuCode());
	}

	public String viewMenuName() throws Exception
	{
		return Value.view(getMenuName());
	}

	public String viewUrl() throws Exception
	{
		return Value.view(getUrl());
	}

	public String viewDisplayOrder() throws Exception
	{
		return Value.view(getDisplayOrder());
	}

	public String viewShowType() throws Exception
	{
		return Value.view(getShowType());
	}

	public String viewParentCode() throws Exception
	{
		return Value.view(getParentCode());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(MenuInfo.ID,getId()));

	c.add(getCondition(MenuInfo.MENU_CODE,getMenuCode()));

	c.add(getCondition(MenuInfo.MENU_NAME,getMenuName()));

	c.add(getCondition(MenuInfo.URL,getUrl()));

	c.add(getCondition(MenuInfo.DISPLAY_ORDER,getDisplayOrder()));

	c.add(getCondition(MenuInfo.SHOW_TYPE,getShowType()));

	c.add(getCondition(MenuInfo.PARENT_CODE,getParentCode()));
		

			
		return c ;
	}
	
//add by Jackey start

//add by Jackey end
}
